//
//  QNetWorkRequest.h
//  quxiangtao
//
//  Created by HHuajiang on 2018/11/12.
//  Copyright © 2018 shanhaijin. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 请求成功的block
 
 
 @param response 响应体数据
 */
typedef void(^PPRequestSuccess)(id response);
/**
 请求失败的block
 
 */
typedef void(^PPRequestFailure)(NSError *error);

NS_ASSUME_NONNULL_BEGIN

@interface QNetWorkRequest : NSObject

/**
 自营页面弹窗
 */
+ (NSURLSessionTask *)autotrophySuccess:(PPRequestSuccess)success;

/**
 京东商品分类
 */
+ (NSURLSessionTask *)jdongCommodityClassificationSuccess:(PPRequestSuccess)success;

/**
京东商品列表
 */
+ (NSURLSessionTask *)jdongShopingLisParameter:(id)parameter Success:(PPRequestSuccess)success Failure:(PPRequestFailure)failure;

/**
淘宝商品详情
 */
+ (NSURLSessionTask *)taoBaoShopDetailarameter:(id)parameter Success:(PPRequestSuccess)success Failure:(PPRequestFailure)failure;

/**
 意见反馈
 */
+ (NSURLSessionTask *)feedbackparameter:(id)parameter Success:(PPRequestSuccess)success Failure:(PPRequestFailure)failure;

@end

NS_ASSUME_NONNULL_END
